home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue24 / ntserv / demo1log.h next >
Encoding:
C/C++ Source or Header  |  1997-07-04  |  2.8 KB  |  136 lines

  1. //
  2. //  Values are 32 bit values layed out as follows:
  3. //
  4. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  5. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  6. //  +---+-+-+-----------------------+-------------------------------+
  7. //  |Sev|C|R|     Facility          |               Code            |
  8. //  +---+-+-+-----------------------+-------------------------------+
  9. //
  10. //  where
  11. //
  12. //      Sev - is the severity code
  13. //
  14. //          00 - Success
  15. //          01 - Informational
  16. //          10 - Warning
  17. //          11 - Error
  18. //
  19. //      C - is the Customer code flag
  20. //
  21. //      R - is a reserved bit
  22. //
  23. //      Facility - is the facility code
  24. //
  25. //      Code - is the facility's status code
  26. //
  27. //
  28. // Define the facility codes
  29. //
  30.  
  31.  
  32. //
  33. // Define the severity codes
  34. //
  35.  
  36.  
  37. //
  38. // MessageId: DEMO1_SERVICE_STARTED
  39. //
  40. // MessageText:
  41. //
  42. //  The service started successfully.
  43. //
  44. #define DEMO1_SERVICE_STARTED            0x40000001L
  45.  
  46. //
  47. // MessageId: DEMO1_SERVICE_PAUSED
  48. //
  49. // MessageText:
  50. //
  51. //  The service was paused.
  52. //
  53. #define DEMO1_SERVICE_PAUSED             0x80000002L
  54.  
  55. //
  56. // MessageId: DEMO1_SERVICE_CONTINUED
  57. //
  58. // MessageText:
  59. //
  60. //  The service was resumed after being paused for %1 milliseconds.
  61. //
  62. #define DEMO1_SERVICE_CONTINUED          0x40000003L
  63.  
  64. //
  65. // MessageId: DEMO1_SERVICE_FAILED
  66. //
  67. // MessageText:
  68. //
  69. //  The service failed to start.
  70. //
  71. #define DEMO1_SERVICE_FAILED             0xC0000004L
  72.  
  73. //
  74. // MessageId: DEMO1_SERVICE_ENDED
  75. //
  76. // MessageText:
  77. //
  78. //  The service ended successfully.
  79. //
  80. #define DEMO1_SERVICE_ENDED              0x40000005L
  81.  
  82. //
  83. // MessageId: DEMO1_SERVICE_INTERROGATED
  84. //
  85. // MessageText:
  86. //
  87. //  The service status was interrogated.
  88. //
  89. #define DEMO1_SERVICE_INTERROGATED       0x40000006L
  90.  
  91. //
  92. // MessageId: DEMO1_SERVICE_CODE_INVALID
  93. //
  94. // MessageText:
  95. //
  96. //  The service handler received an unexpected code of '%1'.
  97. //
  98. #define DEMO1_SERVICE_CODE_INVALID       0xC0000007L
  99.  
  100. //
  101. // MessageId: DEMO1_SERVICE_UPDATE_STATUS_FAILED
  102. //
  103. // MessageText:
  104. //
  105. //  The call to update SCM with current status failed. Last error code was %1.
  106. //
  107. #define DEMO1_SERVICE_UPDATE_STATUS_FAILED 0xC0000008L
  108.  
  109. //
  110. // MessageId: DEMO1_SERVICE_REGHANDLER_FAILED
  111. //
  112. // MessageText:
  113. //
  114. //  The call to register the service handler failed with %1.
  115. //
  116. #define DEMO1_SERVICE_REGHANDLER_FAILED  0xC0000009L
  117.  
  118. //
  119. // MessageId: DEMO1_SERVICE_STARTDISPATCHER_FAILED
  120. //
  121. // MessageText:
  122. //
  123. //  The call to start the service displatcher failed with %1.
  124. //
  125. #define DEMO1_SERVICE_STARTDISPATCHER_FAILED 0xC000000AL
  126.  
  127. //
  128. // MessageId: DEMO1_SERVICE_STARTUP_PARM_INVALID
  129. //
  130. // MessageText:
  131. //
  132. //  The service startup parameter '%1' is invalid. Will use 1 second delay.
  133. //
  134. #define DEMO1_SERVICE_STARTUP_PARM_INVALID 0xC000000BL
  135.  
  136.